//
//  SDKTool.h
//  sr01sdkProject
//
//  Created by  on 2022/7/5.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

//typedef NS_ENUM(NSUInteger, CHARGE_STATE) {
//    NONE = 0,
//    NO_CHARGE = 1,
//    CHARGE = 2,
//};

@interface CAsDKTool : NSObject

//@property(assign, nonatomic)CHARGE_STATE lastChargeState;

/// 电压转电量
/// @param battery
+(int)toBatteryLevel:(NSInteger)battery IsCharge:(int)isCharge IsWireness:(BOOL)isWireness;
+(NSData *)oemAesDecreat:(NSData *)snData Company:(NSString *)company R1:(NSData *)r1;

-(NSNumber *)voltageToBattery:(float)voltage IsCharge:(BOOL)ischage IsWireness:(BOOL)isWireless;
-(void)reset;
+(NSString *)macAddressFromBleAvdData:(NSDictionary *)advertisementData;


@end

NS_ASSUME_NONNULL_END
